package cn.duckerkj.base.aop;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@Configuration
public class WebAppConfig extends WebMvcConfigurerAdapter{    
      
      
    /** 
     * 配置拦截器 
     * @author lance 
     * @param registry 
     */  
    @Override
    public void addInterceptors(InterceptorRegistry registry) {  
        registry.addInterceptor(new MyHandlerInterceptor()).addPathPatterns("/**");  
    }  
}  